import React, { Component } from 'react'
import { Route, Switch, Redirect } from 'react-router-dom'

import Entry from '@/pages/Entry'
import Room from '@/pages/Room'

class App extends Component {
  render() {
    return (
      <Switch>
        <Route path="/entry" component={Entry} />
        <Route path="/room" component={Room} />
        <Redirect to="/entry" />
      </Switch>
    )
  }
}

export default App
